package com.newsproject;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan("com.newsproject.mapper") // 添加这行
@SpringBootApplication
@EnableScheduling
@ComponentScan({"config","Util",
        "com.newsproject.controller",
 "com.newsproject.service"})
public class NewsProjectApplication {
    public static void main(String[] args) {
        SpringApplication.run(NewsProjectApplication.class, args);
    }

}